﻿<%@page contentType="text/html;charset=UTF-8" %><%@page import="java.util.LinkedList" %><%@page import="be.destin.skos.core.SkosManager" %><%@page import="be.destin.skos.core.Concept" %><%@page import="be.destin.skos.core.Application" %><%@page import="be.destin.skos.html.SkosHtmlManager" %><%@page import="be.destin.skos.core.SchemeInterface" %><%@page import="be.destin.skos.view.SkosView" %><%@page import="be.destin.skos.view.SkosViewType" %><%@page import="be.destin.skos.view.ViewConcept" %><%@page import="be.destin.skos.view.SkosViewManager" %><%@page import="be.destin.memolog.UsageMode" %><%@page import="be.destin.memolog.UsageLogger" %><%@page import="be.destin.memo.Log" %><%@page import="be.destin.memo.TagDef" %><%@page import="be.destin.memo.Tagged" %><%@page import="java.util.List" %><%@page import="java.util.LinkedHashMap" %><%
%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<%	 
   SkosHtmlManager skosHtmlManager = SkosHtmlManager.getAskosiSessionInstance(request);
   SkosManager skosManager = skosHtmlManager.getSkosManager();
   String language = skosHtmlManager.getLanguage();
   String submit = request.getParameter("submit");
   if (submit == null) submit = "EXPAND";
   String independant = request.getParameter("independant");
   String framing = request.getParameter("framed");
   boolean framed = framing != null && framing.equalsIgnoreCase("yes");
   if (independant != null && independant.equalsIgnoreCase("yes")) framed = false;
   String toexpand = request.getParameter("toexpand");
   if (toexpand == null) toexpand = "";
   LinkedList<String> sentences = null;
%>
<html>
<head>
<title>Expand SKOS concepts references from a text, using concept schemes defined by <%=skosManager.getConfigDirectory()%></title>
<link rel="shortcut icon" href="image/tulipevertepetite.png" >
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/jqueryui.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/askosi.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/ajaxtags.css" />
	<script type="text/javascript" src="js/jquery-1.7.2.js"></script>
    <script type="text/javascript" src="js/sessvars.js"></script>
    <script type="text/javascript" src="js/tablescroll.js"></script>
    <script type="text/javascript">
		sessvars.contextPath = "<%= request.getContextPath() %>";
		headerHeight=100;
		footerHeight=50;
	</script>
</head>
<body class="contentpage">
<% if (framed) {
%><script language="JavaScript">
parent.parent.parent.parent.focusFrame(this);
</script><%
} else {%><div id="header"><%String pageID = "Expand";%><%@include file="basket.jnc"%>
<div style="margin:8px 3px 3px 3px;"><form action="search.jsp" method="GET" class="searchForm"><input type="hidden" name="scheme" value=""/><%--
	   --%><label for="leftTruncation" alt="Left Truncation"><b>*</b><input type="checkbox" name="leftTruncation" value="on" checked/></label><input type="text" name="query" size="30"/><b>*</b>&nbsp;<%--
   	   --%><label for="byPieces" alt="By Pieces"><b>by pieces:</b><input type="checkbox" name="byPieces" value="on"/></label><%--
	   --%><input type="image" src="image/search.png" name="Search" alt="Search"><%--
	--%></form></div>
  </div>
<%
}%>

<%if(!framed){%>
<div id="footer"><p style="margin:6px; padding:2px;"><span class="ToC">
 <a href="index.jsp?sort=alfa">Alphabetical</a>
 or <a href="index.jsp">Most Used Schemes <strong>Table of Content</strong></a>
as a <a href="index.jsp?profile=guest">guest</a> or as a <a href="index.jsp?profile=BIBLIO">BIBLIO</a></span>
<span class="ToC">
 <a href="analyze.jsp">Analyze</a>
</span>
</p><p style="margin:4px">Thesaurus navigation and maintenance, Indexation browsing are services developed in the <a href="http://www.askosi.org">ASKOSI</a> project.</p>
</div>
<%}%>

<div id="content">
<img src="image/carrevide.gif" height="100" border="0" alt="top margin"/><br style="clear:both"/>

<form method="POST" action="expand.jsp">
<textarea name="toexpand" rows=20 cols=100><%=(submit.equals("EXPAND")?skosManager.toStringScheme_Concept(toexpand,language,null,null,null,true):toexpand)%></textarea>
<p><input type="submit" name="submit" value="EXPAND"/></p>
</form>
